package cn.jn.lhm.teacher.service.impl;

import cn.jn.lhm.teacher.entity.EduVideo;
import cn.jn.lhm.teacher.mapper.EduVideoMapper;
import cn.jn.lhm.teacher.service.EduVideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/2 - 21:36
 */
@Service
public class EduVideoServiceImpl implements EduVideoService {

    @Resource
    private EduVideoMapper eduVideoMapper;

    @Override
    public void save(EduVideo eduVideo) {
        eduVideoMapper.insert(eduVideo);
    }

    @Override
    public void deleteById(String id) {
        eduVideoMapper.deleteById(id);
    }

    @Override
    public void updateVideo(EduVideo eduVideo) {
        eduVideoMapper.updateById(eduVideo);
    }

    @Override
    public EduVideo getVideoById(String id) {
        return eduVideoMapper.selectById(id);
    }



}
